<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkTmcActivityListRequest extends Request
{

    /**
     * 千万神券活动数据列表
     * 支持当前日期前6天到后7天的时间范围查询千万神券活动，日期超过范围将用最大边界时间替换
     * @var string
     */
    private $type = 'pdd.ddk.tmc.activity.list';

    /**
     * 页码 从1开始
     * @var
     */
    private $pageNum;

    /**
     * 每页结果数，默认值: 20 最大50
     * @var
     */
    private $pageSize;

    /**
     * 活动开始时间最小时间 格式: "yyyy-MM-dd HH:mm:ss"
     * @var
     */
    private $startTimeLower;

    /**
     * 活动开始时间最大时间 格式: "yyyy-MM-dd HH:mm:ss"
     * @var
     */
    private $startTimeUpper;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setPageNum($pageNum)
    {
        $this->pageNum = $pageNum;
    }

    public function getPageNum()
    {
        return $this->pageNum;
    }

    public function setPageSize($pageSize)
    {
        $this->pageSize = $pageSize;
    }

    public function getPageSize()
    {
        return $this->pageSize;
    }

    public function setStartTimeLower($startTimeLower)
    {
        $this->startTimeLower = $startTimeLower;
    }

    public function getStartTimeLower()
    {
        return $this->startTimeLower;
    }

    public function setStartTimeUpper($startTimeUpper)
    {
        $this->startTimeUpper = $startTimeUpper;
    }

    public function getStartTimeUpper()
    {
        return $this->startTimeUpper;
    }

    public function getParams()
    {
        $params = [
            'type'             => $this->type,
            'page_num'         => $this->pageNum,
            'page_size'        => $this->pageSize,
            'start_time_lower' => $this->startTimeLower,
            'start_time_upper' => $this->startTimeUpper,
        ];
        return array_filter($params);
    }
}
